using UnityEngine;

public class ItemSticker : MonoBehaviour
{
	public int Index;

	public EquipType equipType;

	public ItemCollector itemCollector;

	public string Tag;

	public Vector3 RotationOffset;

	public int ItemIndex;

	[HideInInspector]
	public bool IsVisible = true;

	private void Start()
	{
	}

	public void Visible(bool visible)
	{
		for (int i = 0; i < base.transform.childCount; i++)
		{
			Renderer[] componentsInChildren = base.transform.GetChild(i).gameObject.GetComponentsInChildren<Renderer>();
			for (int j = 0; j < componentsInChildren.Length; j++)
			{
				componentsInChildren[j].enabled = visible;
			}
		}
		IsVisible = visible;
	}

	public ItemEquipment GetEquipped()
	{
		if (base.transform.childCount > 0)
		{
			return base.transform.GetChild(0).GetComponent<ItemEquipment>();
		}
		return null;
	}

	public bool IsEmpty()
	{
		if (base.transform.childCount <= 0)
		{
			return true;
		}
		return false;
	}

	private void OnDrawGizmos()
	{
	}
}
